package com.worthtech.billportal.bean;

/**
 * TransCtrlViewId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TransCtrlViewId implements java.io.Serializable {

	// Fields

	private String transType;
	private String transDay;
	private String transMonth;
	private Long transTotal;
	private String transBillno;
	private String transCorp;
	private Long transErrpwd;

	// Constructors

	/** default constructor */
	public TransCtrlViewId() {
	}

	/** minimal constructor */
	public TransCtrlViewId(String transType, String transBillno,
			String transCorp) {
		this.transType = transType;
		this.transBillno = transBillno;
		this.transCorp = transCorp;
	}

	/** full constructor */
	public TransCtrlViewId(String transType, String transDay,
			String transMonth, Long transTotal, String transBillno,
			String transCorp, Long transErrpwd) {
		this.transType = transType;
		this.transDay = transDay;
		this.transMonth = transMonth;
		this.transTotal = transTotal;
		this.transBillno = transBillno;
		this.transCorp = transCorp;
		this.transErrpwd = transErrpwd;
	}

	// Property accessors

	public String getTransType() {
		return this.transType;
	}

	public void setTransType(String transType) {
		this.transType = transType;
	}

	public String getTransDay() {
		return this.transDay;
	}

	public void setTransDay(String transDay) {
		this.transDay = transDay;
	}

	public String getTransMonth() {
		return this.transMonth;
	}

	public void setTransMonth(String transMonth) {
		this.transMonth = transMonth;
	}

	public Long getTransTotal() {
		return this.transTotal;
	}

	public void setTransTotal(Long transTotal) {
		this.transTotal = transTotal;
	}

	public String getTransBillno() {
		return this.transBillno;
	}

	public void setTransBillno(String transBillno) {
		this.transBillno = transBillno;
	}

	public String getTransCorp() {
		return this.transCorp;
	}

	public void setTransCorp(String transCorp) {
		this.transCorp = transCorp;
	}

	public Long getTransErrpwd() {
		return this.transErrpwd;
	}

	public void setTransErrpwd(Long transErrpwd) {
		this.transErrpwd = transErrpwd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TransCtrlViewId))
			return false;
		TransCtrlViewId castOther = (TransCtrlViewId) other;

		return ((this.getTransType() == castOther.getTransType()) || (this
				.getTransType() != null
				&& castOther.getTransType() != null && this.getTransType()
				.equals(castOther.getTransType())))
				&& ((this.getTransDay() == castOther.getTransDay()) || (this
						.getTransDay() != null
						&& castOther.getTransDay() != null && this
						.getTransDay().equals(castOther.getTransDay())))
				&& ((this.getTransMonth() == castOther.getTransMonth()) || (this
						.getTransMonth() != null
						&& castOther.getTransMonth() != null && this
						.getTransMonth().equals(castOther.getTransMonth())))
				&& ((this.getTransTotal() == castOther.getTransTotal()) || (this
						.getTransTotal() != null
						&& castOther.getTransTotal() != null && this
						.getTransTotal().equals(castOther.getTransTotal())))
				&& ((this.getTransBillno() == castOther.getTransBillno()) || (this
						.getTransBillno() != null
						&& castOther.getTransBillno() != null && this
						.getTransBillno().equals(castOther.getTransBillno())))
				&& ((this.getTransCorp() == castOther.getTransCorp()) || (this
						.getTransCorp() != null
						&& castOther.getTransCorp() != null && this
						.getTransCorp().equals(castOther.getTransCorp())))
				&& ((this.getTransErrpwd() == castOther.getTransErrpwd()) || (this
						.getTransErrpwd() != null
						&& castOther.getTransErrpwd() != null && this
						.getTransErrpwd().equals(castOther.getTransErrpwd())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTransType() == null ? 0 : this.getTransType().hashCode());
		result = 37 * result
				+ (getTransDay() == null ? 0 : this.getTransDay().hashCode());
		result = 37
				* result
				+ (getTransMonth() == null ? 0 : this.getTransMonth()
						.hashCode());
		result = 37
				* result
				+ (getTransTotal() == null ? 0 : this.getTransTotal()
						.hashCode());
		result = 37
				* result
				+ (getTransBillno() == null ? 0 : this.getTransBillno()
						.hashCode());
		result = 37 * result
				+ (getTransCorp() == null ? 0 : this.getTransCorp().hashCode());
		result = 37
				* result
				+ (getTransErrpwd() == null ? 0 : this.getTransErrpwd()
						.hashCode());
		return result;
	}

}